
import{
    TOGGLE_SIDEBAR_COLLAPSE,
    CHANGE_BREADCRUMBS
    }from "./mutation-types"
    
const actions={
     // 切换侧边栏的展开收toggleSidebarCollaps缩
     toggleSidebarCollapse: ({commit}) => {
        commit(TOGGLE_SIDEBAR_COLLAPSE)
        console.log("切换侧边栏的展开收缩commit",commit);
    },
    //修改面包屑导航
    changeBreadCrumbs: ({commit},breadcrumbs) =>{
        commit(CHANGE_BREADCRUMBS,breadcrumbs)
    }
}

export default actions;